<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML >
<html>
<head>
<base href="<%=basePath%>">
<title>部门管理</title>


</head>
<body>
	<c:if test="${section==null }">
		<jsp:forward page="/section/findAll"></jsp:forward>
	</c:if>
	<div>
		<h1>部门信息管理</h1>
		<table>
			<tr>
				<th>ID</th>
				<th>部门名称</th>
				<th>部门地址</th>
				<th>电话</th>
			</tr>
			<c:forEach items="${section }" var="s">
				<tr>
					<td>${s.id }</td>
					<td>${s.sectionName }</td>
					<td>${s.sectionAddress }</td>
					<td>${s.sectionPhone }</td>
				</tr>
			</c:forEach>

		</table>
	</div>

</body>
</html>
